package com.kunbo.cn.app.service;

import java.util.List;
import java.util.Map;

import com.kunbo.cn.app.entity.Driver;

public interface DriverService {
	
	public Boolean saveDriver(String number,String name,String idcrad,String contact_number,String drivers_license,String uuid,String create_user_id,String unit);

	public Boolean updateDriver(Integer id,String number,String name,String idcrad,String contact_number,String drivers_license);

	public Driver selById(Integer id);
	
	public Boolean delById(Integer id);
	
	public List<Map<String,Object>> selDriver(Integer wayBillUnit);
	
	public List<Map<String,Object>> selDriverByName(String name,Integer wayBillUnit);

	public String selPhoneById(Integer id);
	/**
	 * 
	 * <p>Title: getAllDrivers</p>
	 * <p>Description:获取空闲状态下的所有司机 </p>
	 * @return
	 */
	public List<Map<String,Object>> getAllDrivers(String idcrad);
}
